﻿@model BugChang.DES.Web.Mvc.Models.Account.LoginViewModel
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head lang="zh">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>公文智能管理系统| 登录</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.7 -->
    <link href="~/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <!-- Font Awesome -->
    <link href="~/lib/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
    <!-- Ionicons -->
    <link href="~/lib/Ionicons/css/ionicons.min.css" rel="stylesheet" />
    <!-- Theme style -->
    <link href="~/lib/admin-lte/css/AdminLTE.min.css" rel="stylesheet" />
    <!-- iCheck -->
    <link href="~/lib/iCheck/square/blue.css" rel="stylesheet" />
    <!-- jquery-loading -->
    <link href="~/lib/jquery-loading/jquery.loading.min.css" rel="stylesheet" />
    <link href="~/lib/toastr/toastr.min.css" rel="stylesheet" />
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>
        html, body {
            overflow-y: hidden;
        }

        body {
            background-image: url('../../images/bg1.jpg');
            background-repeat: no-repeat;
            background-size: 100% 100%;
        }
    </style>
</head>
<body class="hold-transition">
    <div class="login-box">
        <div class="login-logo">
            <a href="/"><b>公文智能管理系统</b>v1.0</a>
        </div>
        <div class="login-box-body">
            <p class="login-box-msg text-red">
                <b>本页面可直接刷卡登录</b>
            </p>
            <form asp-action="Login" asp-route-returnUrl="@ViewBag.ReturnUrl" method="post">
                <input asp-for="DeviceCode" type="hidden" />
                <div class="form-group has-feedback">
                    <input asp-for="UserName" type="text" class="form-control" placeholder="用户名" value="@Model.UserName">
                    <span class="glyphicon glyphicon glyphicon-user form-control-feedback"></span>
                </div>
                <div class="form-group has-feedback">
                    <input asp-for="Password" type="password" class="form-control" placeholder="密码">
                    <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                </div>
                @if (ViewBag.ErrorMessage != null)
                {
                    <div class="form-group">
                        <span class="text-danger text-bold">@ViewBag.ErrorMessage</span>
                    </div>
                }
                <div class="row">
                    <div class="col-xs-8">
                        <div class="checkbox icheck">
                            <label>
                                <input asp-for="RememberMe" type="checkbox">&nbsp;记住我？
                            </label>
                        </div>
                    </div>
                    <div class="col-xs-4">
                        <button type="submit" class="btn btn-primary btn-block btn-flat">登录</button>
                    </div>
                </div>
            </form>
            <a href="#">忘记密码？</a><br>
        </div>
    </div>
    <script src="~/lib/jquery/jquery.min.js"></script>
    <script src="~/lib/bootstrap/js/bootstrap.min.js"></script>
    <script src="~/lib/iCheck/icheck.min.js"></script>
    <script src="~/lib/toastr/toastr.min.js"></script>
    <script src="~/lib/jquery-loading/jquery.loading.min.js"></script>
    <script src="~/js/md5.js"></script>
    <script src="~/views-resource/account/login.js" asp-append-version="true"></script>
</body>
</html>
